<?php
namespace app\wxapi\controller;

use think\facade\View;
use app\index\model\Contentmodel;
use think\App;

class Detail extends Common
{
    protected $contentmodel;

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->contentmodel = new Contentmodel();
    }

    public function index(){
		$id = $this->request->request('id');
        $this->showData['detail'] = $this->contentmodel->findDetaiById("*", $id);
		
		return json(['code'=>200, 'id'=>$id, 'result'=>'success', 'data'=>$this->showData]);
	}
}
